package com.tuozixuan.camel;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class FromDemoRoute extends RouteBuilder {

	@Override
	public void configure() throws Exception {
		// file表示输入源为文件端点，inbox为基础目录名；log:inbox表示在日志中输出内容为“inbox”的字符串
		from("file:inbox")
		  .to("log:inbox");
	}

}
